package request

type AddBookReq struct {
	// binding:"required"修饰的字段，若接收为空值，则报错，是必须字段
	Title   string `form:"title" json:"title" `
	TypesId int64  `form:"typesId" json:"typesId" binding:"required"`
	Num     int64  `form:"num" json:"num" `
}

type UpdateStatusReq struct {
	Id     int64 `form:"id" json:"id" binding:"required"`
	Status int64 `form:"status" json:"status" binding:"required"`
}

type DelBookReq struct {
	Id int64 `form:"id" json:"id" binding:"required"`
}

type BookList struct {
	Page     int64  `form:"page" json:"page" `
	PageSize int64  `form:"pageSize" json:"pageSize" `
	Title    string `form:"title" json:"title" `
	TypesId  int64  `form:"typesId" json:"typesId" `
	Status   int64  `form:"status" json:"status" `
}
